package com.legal.aid.app.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.legal.aid.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

public class NewsVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 新闻id
     */
    private Long newsId;

    /**
     * 新闻标题
     */
    @Excel(name = "新闻标题")
    private String newsTitle;

    /**
     * 副标题
     */
    @Excel(name = "副标题")
    private String subtitle;

    /**
     * 封面图url
     */
    @Excel(name = "封面图url")
    private String coverImageUrl;

    /**
     * 新闻内容
     */
    @Excel(name = "新闻内容")
    private String newsContent;

    /**
     * 作者
     */
    @Excel(name = "作者")
    private String author;

    /**
     * 发布日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishDate;

    /**
     * 新闻类别'1业内资讯','2法律速递','3企业新闻','4视频'
     */
    @Excel(name = "新闻类别'1业内资讯','2法律速递','3企业新闻','4视频'")
    private String newsCategory;

    /**
     * 浏览次数
     */
    @Excel(name = "浏览次数")
    private Long viewCount;

    /**
     * 是否置顶（0-否 1-是）
     */
    private String isTop;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createdBy;

    /**
     * 修改人
     */
    private String updatedBy;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    public void setNewsId(Long newsId) {
        this.newsId = newsId;
    }

    public Long getNewsId() {
        return newsId;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setCoverImageUrl(String coverImageUrl) {
        this.coverImageUrl = coverImageUrl;
    }

    public String getCoverImageUrl() {
        return coverImageUrl;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setNewsCategory(String newsCategory) {
        this.newsCategory = newsCategory;
    }

    public String getNewsCategory() {
        return newsCategory;
    }

    public void setViewCount(Long viewCount) {
        this.viewCount = viewCount;
    }

    public Long getViewCount() {
        return viewCount;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }

    public String getIsTop() {
        return isTop;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "NewsVo{" +
                "newsId=" + newsId +
                ", newsTitle='" + newsTitle + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", coverImageUrl='" + coverImageUrl + '\'' +
                ", newsContent='" + newsContent + '\'' +
                ", author='" + author + '\'' +
                ", publishDate=" + publishDate +
                ", newsCategory='" + newsCategory + '\'' +
                ", viewCount=" + viewCount +
                ", isTop='" + isTop + '\'' +
                ", publishTime=" + publishTime +
                ", createdBy='" + createdBy + '\'' +
                ", updatedBy='" + updatedBy + '\'' +
                ", updatedTime=" + updatedTime +
                '}';
    }
}
